import request from "@/utils/request";

/*条件查询*/
export function getConsumers(pageNun,pageSize,queryMap) {
    return request({
        url:'/business/consumer/findConsumer',
        method:'post',
        params:{
            pageNun,
            pageSize
        },
        data:queryMap
    })
}

/*删除*/
export function deleteConsumers(id) {
    return request({
        url:"/business/consumer/delete",
        method:"delete",
        params:{
            id
        }
    })
}

/*添加*/
export function addConsumers(consumerVO) {
    return request({
        url:"/business/consumer/add",
        method:'post',
        data:consumerVO
    })
}

/*编辑*/
export function editConsumers(consumerVO) {
    return request({
        url:"/business/consumer/edit",
        method:'post',
        data:consumerVO
    })
}